package com.yty.order.service.impl;

import com.yty.order.entity.DeDuplication;
import com.yty.order.mapper.DeDuplicationMapper;
import com.yty.order.service.IDeDuplicationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yegang
 * @since 2022-06-24
 */
@Service
public class DeDuplicationServiceImpl extends ServiceImpl<DeDuplicationMapper, DeDuplication> implements IDeDuplicationService {

    @Override
    public void insertDeDuplicationLog(String txNo, Boolean isSuccess, String remark) {
        DeDuplication d = new DeDuplication();
        d.setTxNo(txNo).setCreateTime(LocalDateTime.now()).setIsSuccess(isSuccess).setRemark(remark);
        save(d);
    }
}
